# Maintainer: Ivy Foster <escondida@iff.ink>
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>

# Gentium Plus is upstream's replacement for ttf-gentium, now called Gentium Basic.
pkgname=gentium-plus-font
pkgver=6.200
pkgrel=1

pkgdesc='Font supporting a wide range of Latin- and Cyrillic-based alphabets'
url='https://scripts.sil.org/Gentium'
license=('custom:OFL')

replaces=(ttf-gentium ttf-gentium-plus)

arch=(any)
source=("https://software.sil.org/downloads/r/gentium/GentiumPlus-$pkgver.zip")
# Checksum provided by packager, not upstream.
sha256sums=('9b21103b79961149b6508791572acb3b2fe7eb621474c57d5e4ee37e76d7b073')

package() {
	mkdir -p "$pkgdir/usr/share/fonts/gentium/" \
		"$pkgdir/usr/share/licenses/gentium-plus-font" \
		"$pkgdir/usr/share/doc/gentium-plus-font"

	cd "GentiumPlus-$pkgver"
	install -m644 *.ttf "$pkgdir/usr/share/fonts/gentium"
	install -m644 OFL.txt OFL-FAQ.txt \
		"$pkgdir/usr/share/licenses/gentium-plus-font"
}
